From: Jasper St. Pierre Date: Fri, 19 Apr 2013 15:43:53 +0000 (-0400) Subject: messageTray: Move adding the menu actor to MessageTrayContextMenu X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3755 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e6ef11575bcc041e32b4b55965f29c0f643c6615;p=gnome-shell.git messageTray: Move adding the menu actor to MessageTrayContextMenu This matches BackgroundMenu and EntryMenu. https://bugzilla.gnome.org/show_bug.cgi?id=699272 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 4214f4790..534bfd805 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1544,6 +1544,9 @@ const MessageTrayContextMenu = new Lang.Class({ this.parent(this._dummy, 0, St.Side.BOTTOM); this._tray = tray; + this.actor.hide(); + Main.layoutManager.addChrome(this.actor); + this._clearItem = this.addAction(_("Clear Messages"), function() { let toDestroy = []; let sources = tray.getSources(); @@ -1784,10 +1787,6 @@ const MessageTray = new Lang.Class({ } return false; })); - - this._contextMenu.actor.hide(); - Main.layoutManager.addChrome(this._contextMenu.actor); - }, _openContextMenu: function () {